sudo update-alternatives --config php
sudo service nginx restart sudo service php7.1-fpm or php7.2-fpm restart